package com.hejjon.knowledgebase.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *  资产入库表
 * @author:
 * @date: 2022/12/8 14:15
 * @since 1.0
 */
@TableName("entry_property")
@ApiModel(value="EntryProperty对象", description="")
public class EntryProperty implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "物品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "所在教室")
    @TableField("classroom")
    private String classroom;

    @ApiModelProperty(value = "物品数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "维护厂家")
    @TableField("repair_factory")
    private String repairFactory;

    @ApiModelProperty(value = "报修结束日期")
    @TableField("repair_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime repairEndTime;

    @ApiModelProperty(value = "购买时间")
    @TableField("buy_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime buyTime;

    @ApiModelProperty(value = "入库日期")
    @TableField("entry_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime entryTime;

    @ApiModelProperty(value = "入库人员")
    @TableField("entry_user")
    private String entryUser;

    @ApiModelProperty(value = "是否删除 1未删除 2已删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getRepairFactory() {
        return repairFactory;
    }

    public void setRepairFactory(String repairFactory) {
        this.repairFactory = repairFactory;
    }

    public LocalDateTime getRepairEndTime() {
        return repairEndTime;
    }

    public void setRepairEndTime(LocalDateTime repairEndTime) {
        this.repairEndTime = repairEndTime;
    }

    public LocalDateTime getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(LocalDateTime buyTime) {
        this.buyTime = buyTime;
    }

    public LocalDateTime getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(LocalDateTime entryTime) {
        this.entryTime = entryTime;
    }

    public String getEntryUser() {
        return entryUser;
    }

    public void setEntryUser(String entryUser) {
        this.entryUser = entryUser;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "EntryProperty{" +
        "id=" + id +
        ", name=" + name +
        ", classroom=" + classroom +
        ", count=" + count +
        ", repairFactory=" + repairFactory +
        ", repairEndTime=" + repairEndTime +
        ", buyTime=" + buyTime +
        ", entryTime=" + entryTime +
        ", entryUser=" + entryUser +
        ", deleted=" + deleted +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
